package com.dragon8869.myspringboot.controller;

import com.dragon8869.myspringboot.entity.SmUser;
import com.dragon8869.myspringboot.service.SmUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SmUser)表控制层
 *
 * @author makejava
 * @since 2020-11-23 16:38:28
 */
@RestController
@RequestMapping("smUser")
public class SmUserController {
    /**
     * 服务对象
     */
    @Resource
    private SmUserService smUserService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SmUser selectOne(Integer id) {
        return this.smUserService.queryById(id);
    }

}